Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-text-path

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-text-path

Check if a file path is a text file

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7M
increased by8.73%
Maintainers
1
Weekly downloads
 
Created

What is is-text-path?

The is-text-path npm package is a simple utility to check if a given file path points to a text file. It helps in determining whether a file is a text file based on its extension.

What are is-text-path's main functionalities?

Check if a path is a text file

This feature allows you to check if a given file path points to a text file. The function returns true if the file is a text file based on its extension, otherwise false.

const isTextPath = require('is-text-path');

const filePath = 'example.txt';
const result = isTextPath(filePath);
console.log(result); // true

Other packages similar to is-text-path

Keywords

FAQs

Package last updated on 19 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc